set(tmp1_path "/opt/arm-ca9-linux-uclibcgnueabihf-8.4.01")
set(tmp2_path "/home/arm-ca9-linux-uclibcgnueabihf-8.4.01")

if(EXISTS  ${tmp1_path})
set(tools ${tmp1_path})
elseif(EXISTS  ${tmp2_path})
set(tools ${tmp2_path})
else()
#默认工具链接路径
set(tools "/opt/arm-ca9-linux-uclibcgnueabihf-8.4.01")
endif()

#编译工具链接
set(CMAKE_C_COMPILER ${tools}/bin/arm-ca9-linux-uclibcgnueabihf-gcc)
set(CMAKE_CXX_COMPILER ${tools}/bin/arm-ca9-linux-uclibcgnueabihf-g++)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
#set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
#set(CMAKE_BUILD_TYPE "RELEASE")

#option(HAVE_REPLAY "use REPLAY MOD " ON)
#支持脚本 
#add_definitions(-D_HAVE_LUA_)
#链接库目录
